package com.ktgj.customer.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ktgj.common.core.annotation.Excel;
import com.ktgj.common.core.web.domain.BaseEntity;

/**
 * 订单子对象 business_order_sub
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
public class BusinessOrderSub extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long orderSubId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String orderNum;

    /** 订单主表ID */
    @Excel(name = "订单主表ID")
    private Long orderId;

    /** 会员卡ID */
    @Excel(name = "会员卡ID")
    private Long customerCardId;

    /** 卡ID */
    @Excel(name = "卡ID")
    private Long cardId;

    /** 卡名称 */
    @Excel(name = "卡名称")
    private String cardName;

    /** 卡售价 */
    @Excel(name = "卡售价")
    private BigDecimal cardPrice;

    /** 开卡续费状态 */
    @Excel(name = "开卡续费状态")
    private String renewCardStatus;

    /** 开卡时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开卡时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newCardTime;

    /** 失效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "失效时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date invalidTime;

    /** 是否退卡 */
    @Excel(name = "是否退卡")
    private String whetherRefund;

    /** 辅营产品id */
    @Excel(name = "辅营产品id")
    private Long assistProductId;

    /** 辅营产品Name */
    @Excel(name = "辅营产品Name")
    private String assistProductName;

    /** 辅营产品price */
    @Excel(name = "辅营产品price")
    private BigDecimal assistProductPrice;

    /** 是否本人购卡 0-本人；1-非本人 */
    @Excel(name = "是否本人购卡 0-本人；1-非本人")
    private Long myselfBuycard;

    /** 购卡会员编号 */
    @Excel(name = "购卡会员编号")
    private Long newCustomerid;

    /** 购卡证件类型 */
    @Excel(name = "购卡证件类型")
    private Long newIdtype;

    /** 购卡证件号 */
    @Excel(name = "购卡证件号")
    private String newIdno;

    /** 购卡生日 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "购卡生日", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newBirthday;

    /** 购卡姓名 */
    @Excel(name = "购卡姓名")
    private String newCustomername;

    /** 购卡性别 1女；2男 */
    @Excel(name = "购卡性别 1女；2男")
    private Long newCustomersex;

    /** 购卡联系方式 */
    @Excel(name = "购卡联系方式")
    private String newCustomerphone;

    /** 是否拥有相同类型的会员卡 */
    @Excel(name = "是否拥有相同类型的会员卡")
    private String same;

    public String getSame() {
        return same;
    }

    public void setSame(String same) {
        this.same = same;
    }

    public void setOrderSubId(Long orderSubId)
    {
        this.orderSubId = orderSubId;
    }

    public Long getOrderSubId()
    {
        return orderSubId;
    }
    public void setOrderNum(String orderNum)
    {
        this.orderNum = orderNum;
    }

    public String getOrderNum()
    {
        return orderNum;
    }
    public void setOrderId(Long orderId)
    {
        this.orderId = orderId;
    }

    public Long getOrderId()
    {
        return orderId;
    }
    public void setCustomerCardId(Long customerCardId)
    {
        this.customerCardId = customerCardId;
    }

    public Long getCustomerCardId()
    {
        return customerCardId;
    }
    public void setCardId(Long cardId)
    {
        this.cardId = cardId;
    }

    public Long getCardId()
    {
        return cardId;
    }
    public void setCardName(String cardName)
    {
        this.cardName = cardName;
    }

    public String getCardName()
    {
        return cardName;
    }
    public void setCardPrice(BigDecimal cardPrice)
    {
        this.cardPrice = cardPrice;
    }

    public BigDecimal getCardPrice()
    {
        return cardPrice;
    }
    public void setRenewCardStatus(String renewCardStatus)
    {
        this.renewCardStatus = renewCardStatus;
    }

    public String getRenewCardStatus()
    {
        return renewCardStatus;
    }
    public void setNewCardTime(Date newCardTime)
    {
        this.newCardTime = newCardTime;
    }

    public Date getNewCardTime()
    {
        return newCardTime;
    }
    public void setInvalidTime(Date invalidTime)
    {
        this.invalidTime = invalidTime;
    }

    public Date getInvalidTime()
    {
        return invalidTime;
    }
    public void setWhetherRefund(String whetherRefund)
    {
        this.whetherRefund = whetherRefund;
    }

    public String getWhetherRefund()
    {
        return whetherRefund;
    }
    public void setAssistProductId(Long assistProductId)
    {
        this.assistProductId = assistProductId;
    }

    public Long getAssistProductId()
    {
        return assistProductId;
    }
    public void setAssistProductName(String assistProductName)
    {
        this.assistProductName = assistProductName;
    }

    public String getAssistProductName()
    {
        return assistProductName;
    }
    public void setAssistProductPrice(BigDecimal assistProductPrice)
    {
        this.assistProductPrice = assistProductPrice;
    }

    public BigDecimal getAssistProductPrice()
    {
        return assistProductPrice;
    }
    public void setMyselfBuycard(Long myselfBuycard)
    {
        this.myselfBuycard = myselfBuycard;
    }

    public Long getMyselfBuycard()
    {
        return myselfBuycard;
    }
    public void setNewCustomerid(Long newCustomerid)
    {
        this.newCustomerid = newCustomerid;
    }

    public Long getNewCustomerid()
    {
        return newCustomerid;
    }
    public void setNewIdtype(Long newIdtype)
    {
        this.newIdtype = newIdtype;
    }

    public Long getNewIdtype()
    {
        return newIdtype;
    }
    public void setNewIdno(String newIdno)
    {
        this.newIdno = newIdno;
    }

    public String getNewIdno()
    {
        return newIdno;
    }
    public void setNewBirthday(Date newBirthday)
    {
        this.newBirthday = newBirthday;
    }

    public Date getNewBirthday()
    {
        return newBirthday;
    }
    public void setNewCustomername(String newCustomername)
    {
        this.newCustomername = newCustomername;
    }

    public String getNewCustomername()
    {
        return newCustomername;
    }
    public void setNewCustomersex(Long newCustomersex)
    {
        this.newCustomersex = newCustomersex;
    }

    public Long getNewCustomersex()
    {
        return newCustomersex;
    }
    public void setNewCustomerphone(String newCustomerphone)
    {
        this.newCustomerphone = newCustomerphone;
    }

    public String getNewCustomerphone()
    {
        return newCustomerphone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("orderSubId", getOrderSubId())
                .append("orderNum", getOrderNum())
                .append("orderId", getOrderId())
                .append("customerCardId", getCustomerCardId())
                .append("cardId", getCardId())
                .append("cardName", getCardName())
                .append("cardPrice", getCardPrice())
                .append("renewCardStatus", getRenewCardStatus())
                .append("newCardTime", getNewCardTime())
                .append("invalidTime", getInvalidTime())
                .append("whetherRefund", getWhetherRefund())
                .append("assistProductId", getAssistProductId())
                .append("assistProductName", getAssistProductName())
                .append("assistProductPrice", getAssistProductPrice())
                .append("myselfBuycard", getMyselfBuycard())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .append("newCustomerid", getNewCustomerid())
                .append("newIdtype", getNewIdtype())
                .append("newIdno", getNewIdno())
                .append("newBirthday", getNewBirthday())
                .append("newCustomername", getNewCustomername())
                .append("newCustomersex", getNewCustomersex())
                .append("newCustomerphone", getNewCustomerphone())
                .toString();
    }
}
